sa0.cookie = {};
sa0.cookie.get = (key) => {
    let arr, reg = new RegExp("(^| )" + key + "=([^;]*)(;|$)");
    return (arr = document.cookie.match(reg))
        ? unescape(arr[2])
        : null;
}
sa0.cookie.set = (key, value, exdays = 10) => {
    let d = new Date();
    d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
    let expires = "expires=" + d.toUTCString();
    document.cookie = key + "=" + value + "; " + expires + ";path=/";
}
sa0.cookie.del = (key) => {
    sa0.cookie.set(key, "", -1);
}